package homework;
import java.util.Scanner;
public class Demo2 { public static void main(String[] args) {
    sgx();
}
    public static void sgx(){
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入第一个数: ");
        int x= scanner.nextInt();
        System.out.println("请输入第二个数: ");
        int y= scanner.nextInt();
        System.out.println("请输入第三个数: ");
        int z=scanner.nextInt();
        System.out.println();
        System.out.println((int)(Math.pow(x,3)+Math.pow(x,3)+Math.pow(x,3)));
    }
}
